from django.shortcuts import render_to_response
from blog.models import Post, Author

def index(request):
    all_posts = Post.objects.all().order_by('-date')
    template_data = {'posts' : all_posts}
    website = Website.objects.all()
    categories = Categorie.objects.all()
    slogan = Slogan.objects.all()
    closeblog  = Closeblog.objects.all()
	
    return render_to_response('index.html', template_data)